﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin_panel/Admin.master" AutoEventWireup="true" CodeFile="Thongkechitiet.aspx.cs" Inherits="Admin_panel_Thongkechitiet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Shortcut" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <link href="../css/table.css" rel="stylesheet" />
    <!-- Start Content Box -->
      <title>Thống kê chi tiết</title>
     <div class="content-box"><!-- Start Content Box -->
        <div class="content-box-header">
            <h3 style="cursor: s-resize;">Thống kê chi tiết</h3>
            <div class="clear"></div>
        </div> <!-- End .content-box-header -->

        <div class="content-box-content">
             
        </div> <!-- End .content-box-content -->
         <center>
                        <h5>Chọn năm báo cáo:  </h5>
                                <asp:DropDownList ID="dropnam" runat="server"  Width="191px" AutoPostBack="True">
                                </asp:DropDownList>
                       

              <table id="list" style="width:99%;margin-top:15px;" >
                        <tr>
                            <th style="text-align:left; " colspan="5">
                        <asp:RadioButtonList ID="radGroup" runat="server"
                            OnSelectedIndexChanged="change_radio" RepeatDirection="Horizontal"
                            Width="273px" AutoPostBack="True" Height="16px" BorderStyle="None" CellPadding="0" CellSpacing="0">
                            <asp:ListItem>Doanh Nghiệp</asp:ListItem>
                            <asp:ListItem>Nhà Nước</asp:ListItem>
                        </asp:RadioButtonList>

                            </th>
                        </tr>
                        <tr>
                            <th style="width: 165px">Mã đơn vị</th>
                            <th>Tên đơn vị</th>
                            <th>Số điện thoại</th>
                            <th>Email</th>
                            <th>Xem báo cáo</th>
                        </tr>
                    <%
                        if(flag==1)
                        {
                            if(listnn!=null)
                            {
                            foreach(var i in listnn)
                            {
                            
                         %>
                    
                        <tr>
                            <td style="width: 165px"><%= i.MaCoQuan %></td>
                            <td><%= i.TenCoQuan %></td>
                            <td><%= i.SDT %></td>
                            <td><%= i.email %></td>
                            <td style="text-align:center;"><a href="ThongKeChiTiet/frmPhuluc01.aspx?id=<%=i.MaCoQuan.Trim() %>&nam=<%=dropnam.SelectedItem.ToString().Trim() %>" style="color:green;">Chi tiết</a></td>
                        </tr>
        
                  <%
                  }
                  } 
                  }%>
                   <%
                        if(flag==0)
                        {
                            if(listdn!=null)
                            {
                            foreach(var i in listdn)
                            {
                            
                         %>
                    
                        <tr>
                            <td style="width: 165px"><%= i.MaDoanhNghiep %></td>
                            <td><%= i.TenDoanhNghiep %></td>
                            <td><%= i.SDT %></td>
                            <td><%= i.Email %></td>
                            
                            <td style="text-align:center;">
                                

                                <a href="ThongKeChiTiet/frmBieuMau02.aspx?id=<%=i.MaDoanhNghiep.Trim() %>&nam=<%=dropnam.SelectedItem.ToString().Trim() %>" style="color:green;">Chi tiết</a></td>
                        </tr>
                      
                  <%
                  }
                  }
                  } %>

                    </table>
                    </center>
        </div> <!-- End .content-box -->   
        
</asp:Content>

